class TeacherCourseClasses {
    String course
    Teacher teacher
    Classes classes

    static belongsTo = [classes:Classes]
    static constraints = {
        course()
        teacher()
        classes()
    }

    static mapping = {
       table 'xedu_teacher_course_classes'
    }

    String toString() {
        "${teacher.name} 带 ${course} 课目"
    }
}
